package com.pjbao.Service;

import com.pjbao.Service.dao.PjbUserRepository;
import com.pjbao.Service.model.PjbUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zero on 2016/9/25.
 */

@Service
public class LoginTool {
    @Autowired
    PjbUserRepository pjbUserRepository;

    public PjbUser getName(String name){
        PjbUser user = pjbUserRepository.findByUsername(name);
        if(user != null){
        }
        return user;
    }
}
